package com.lazily.homework;


/**
 * @Author: GZQ
 * @date: 2025/2/24 20:43
 * @description: 练习3
 */

public class Homework03 {
	// 程序入口
	public static void main(String[] args) {
		// 打印 B -> C -> D
		try {
			func();
			System.out.println("A");
		} catch (Exception e) {
			System.out.println("C");
		}
		System.out.println("D");

	}

	public static void func() {
		try {
			throw new RuntimeException();
		} finally {
			System.out.println("B");
		}
	}
}
